import {request2} from './request'

export function getdetail (iid) {
    return request2({
        url:'/detail',
        params:{
            iid
        }
    })
}
export class Goods{
    constructor(itemInfo,columns,service,desc){
        this.title = itemInfo.title;   //【2件69元】【新品特惠】【赠送运费险 七天无理由退换货】【无忧售后】"
        this.Price = itemInfo.price;
        this.OldPrice = itemInfo.oldPrice;
        this.discount = itemInfo.discountDesc;  //大减价
        this.colums = columns;  //销量 40", "收藏353人", "默认快递"
        this.service = service;
        this.realprice = itemInfo.lowNowPrice;

    }
}

export class Detail{
    constructor(desc,detailImages,) {
        this.desc = desc;
        this.key = detailImages[0].key;
        this.list = detailImages[0].list;
    }
}

export class Params{
    constructor(params){
        this.set = params.info.set;
        this.key = params.info.key;
        this.tables = params.rule.tables;

    }
}